package com.sw.small_world.fragment.home.search;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.view.View;

import com.sw.small_world.R;
import com.sw.small_world.activity.ClickButtonActivity;
import com.sw.small_world.activity.MainActivity;
import com.sw.small_world.fragment.base.BasePagerFragment;
import com.sw.small_world.fragment.base.FragmentFactory;
import com.sw.small_world.utils.CommonUtils;

/**
 * Created by Administrator on 2017/3/25.
 */

public class SearchResultFragment extends BasePagerFragment {
    private ClickButtonActivity activity;

    @Override
    protected Fragment setFragment(int position) {
        return FragmentFactory.createForSearch(position);
    }

    @Override
    protected String[] setTitles() {
        return CommonUtils.getStringArray(R.array.search_result);
    }

    @Override
    protected void setActionBar() {
        activity = (ClickButtonActivity) getActivity();
        activity.search.setVisibility(View.VISIBLE);
        activity.etSearch.setText("健康");
        activity.etSearch.setFocusable(false);
    }
}
